package Level02;

import java.util.Collection;
import java.util.HashMap;
import java.util.Set;

public class Four {
    public static void main(String[] args) {
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("柳岩", "2100");
        hashMap.put("张亮", "1700");
        hashMap.put("诸葛亮", "1800");
        hashMap.put("灭绝师太", "2600");
        hashMap.put("东方不败", "3800");
        String salary = hashMap.get("柳岩");
        salary = String.valueOf(2100 + 300);
        hashMap.put("柳岩",salary);
        Set<String> keySet = hashMap.keySet();
        for (String s : keySet) {
            System.out.println(s + "-->" + hashMap.get(s));
        }
    }
}

